The following table shows the connections to control the operation of the CaseStatement ActiveX control at run time.
Connections |
Descriptions |
Trigger Required |
When the assigned tag transitions from a zero to a non-zero value, the control evaluates the value of ; SOURCE against the configured Casexx_Test values using the specified Casexx_Operator. If the evaluation result is true, the control writes the Casexx_Result value to the Destination tag. If none of the evaluation results are true, the Default_Result value is written to the Destination tag. The Trigger connection must be reset before each evaluation attempt. The connection data type is Integer. The connection can be a direct tag, memory tag, or expression. |
Source Required |
This connection contains the value to evaluate against all test cases. The connection data type is Integer. The connection can be a direct tag, memory tag, or expression. |
Destination Required |
This connection contains the target tag where values are written to. The connection data type is String. The connection can be a direct tag or a memory tag. |
Execution_Complete Optional |
This connection supports communication to the control program. The connection data type is Integer. The connection can be a direct tag or a memory tag. |
Handshake Optional |
This connection allows the control program to reset the Trigger. The connection data type is Integer. The connection can be a direct tag, memory tag, or expression. |
Default_Result Optional |
This connection provides the default value that is written to Destination, when no evaluation result is true. The connection data type is String. The connection can be a direct tag, memory tag, or expression. |
Result_Code Optional |
This connection allows the control program to evaluate the results of each control execution. The connection data type is Integer. The connection can be a direct tag or memory tag. |
Case01_Test - Case50_Test Optional |
Casexx_Test contains the number xx value to be evaluated against Source. The connection data type is Integer. The connection can be a direct tag, memory tag, or expression. |
Case01_Operator - Case50_Operator Optional |
Casexx_Operator offers the operator to be used when Casexx_Test is evaluated against Source. The connection data type is String. The connection can be a direct tag, memory tag, explicit text entry, or expression. The value can only be one of the following: LES, LEQ, EQU, GEQ, GRT or NEQ. Those values stand for: LES = Less Than LEQ = Less Than or Equal to EQU = Equal to GEQ = Greater than or Equal to GRT = Greater than NEQ = Not Equal to |
Case01_Result - Case50_Result Optional |
Casexx_Result offers the value to be written to Destination when the result of evaluating Case01_Test against Source is true. The connection data type is String. The connection can be a direct tag or a memory tag. |